import Login from "../login/Login";
import Shou from "../pages/whr/Shou";
import Wode from "../pages/Wode";
import Xiaoxi from "../pages/Xiaoxi";
import Zhu from "../pages/Zhu";
import Attendance from "../pages/sow/Attendance";
import Attdetail from "../pages/sow/Attdetail";
import Erratt from "../pages/sow/Erratt";
import Qingjia from "../pages/zsy/qingjia";
import Chuchai from '../pages/zsy/Chuchai';
import Waiqin from '../pages/zsy/Waiqin';
import Daiban from '../pages/whr/daiban'

import Detail from '../pages/lyf/Detail'
import Detail2 from '../pages/lyf/Detail2'
import Detail3 from '../pages/lyf/Detail3'
import Xiangq from '../pages/lyf/Xiangq'
import Xiangq2 from '../pages/lyf/Xiangq2'
import Xiangq3 from '../pages/lyf/Xiangq3'

import Change1 from '../pages/wzb/Change1';
import Change2 from '../pages/wzb/Change2';
import Change3 from '../pages/wzb/Change3';
import Change4 from '../pages/wzb/Change4';
import Change5 from '../pages/wzb/Change5';
import Change6 from '../pages/wzb/Change6';

import Yiban from '../pages/whr/yiban'

import Chat from '../pages/whr/chat'


import AttendanceInit from '../pages/sow/AttendanceInit';
import Jiadetail from "../pages/sow/Jiadetail";


import Liaotian from "../pages/Liaotian"

import { createBrowserRouter,Navigate } from "react-router-dom";


const router=createBrowserRouter([
    {path:"/login",element:<Login></Login>},
    {path:"/zhu",element:<Zhu></Zhu>,
        children:[
            {path:"/zhu/shou",element:<Shou></Shou>},
            {path:"/zhu/xiaoxi",element:<Xiaoxi></Xiaoxi>},
            {path:"/zhu/wode",element:<Wode></Wode>},
            {path:"/zhu",element:<Navigate to="/zhu/shou"></Navigate>},
            {path:"/zhu/xiaoxi/:itemid",element:<Detail></Detail>},
            {path:"/zhu/xiaoxi2/:itemid",element:<Detail2></Detail2>},
            {path:"/zhu/xiaoxi3/:itemid",element:<Detail3></Detail3>},
            {path:"/zhu/xiangq/:itemid",element:<Xiangq></Xiangq>},
            {path:"/zhu/xiangq2/:itemid",element:<Xiangq2></Xiangq2>},
            {path:"/zhu/xiangq3/:itemid",element:<Xiangq3></Xiangq3>},
        ]
    },
    {path:"/attendance",element:<Attendance></Attendance>},
    {path:"/attdetail",element:<Attdetail></Attdetail>},
    {path:"/attendanceinit",element:<AttendanceInit></AttendanceInit>},
    {path:"/erratt",element:<Erratt></Erratt>},
    {path:"/jiadetail",element:<Jiadetail></Jiadetail>},
    {path:"/",element:<Navigate to="/login"></Navigate>},
    {path:"/chuchai",element:<Chuchai></Chuchai>},
    {path:"/qingjia",element:<Qingjia></Qingjia>},

    {path:"/daiban",element:<Daiban></Daiban>},
    {path:"/yiban",element:<Yiban></Yiban>},
    {path:"/chat",element:<Chat></Chat>},



    { path: "/daiban", element: <Daiban></Daiban> },
    { path: "/daiban/change1/:itemid", element: <Change1></Change1> },
    { path: "/daiban/change2/:itemid", element: <Change2></Change2> },
    { path: "/daiban/change5/:itemid", element: <Change5></Change5> },

    { path: "/yiban", element: <Yiban></Yiban> },
    { path: "/yiban/change3/:itemid", element: <Change3></Change3> },
    { path: "/yiban/change4/:itemid", element: <Change4></Change4> },
    { path: "/yiban/change6/:itemid", element: <Change6></Change6> },
    
    { path: "/waiqin", element: <Waiqin></Waiqin> },
    { path: "/liaotian", element: <Liaotian></Liaotian> },



])
export default router
